<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/5/22
 * Time: 15:19
 */

use yii\widgets\ActiveForm;
use common\components\widgets\Datetimepicker;

Datetimepicker::widget(['timepicker' => 'false', 'datepicker' => 'true', 'step' => '5']);
?>
<div class="yx-praise-list-box yx-praise-box yx-radius2 zx-min-height">
    <?php $form = ActiveForm::begin(['enableAjaxValidation' => true, 'enableClientValidation' => false, 'options' => ['class' => 'form-validate']]); ?>
    <table width="100%" class="table-form">
        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['type_id']; ?></th>
            <td><?= $form->field($model, 'type_id', ['template' => '{input}{hint}{error}'])->dropDownList([1 => '充值升级会员', 2 => '购买会员'], ['prompt' => '请选择', 'style' => 'width:180px', 'class' => 'input-dropdownlist']) ?></td>
        </tr>
        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['grade_id']; ?></th>
            <td><?= $form->field($model, 'grade_id', ['template' => '{input}{hint}{error}'])->dropDownList($gradeList, ['prompt' => '请选择', 'style' => 'width:180px', 'class' => 'input-dropdownlist']) ?></td>
        </tr>
        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['money']; ?></th>
            <td><?= $form->field($model, 'money', ['template' => '{input}{hint}{error}'])->textInput(['style' => 'width:180px', 'class' => 'input-text']) ?></td>
        </tr>
        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['expiry_date']; ?></th>
            <td><?= $form->field($model, 'expiry_date', ['template' => '{input}{hint}{error}'])->textInput( ['style' => 'width:180px', 'class' => 'input-text']) ?></td>
        </tr>
        <tr>
            <th class="zx-goods-table"><?= $model->attributeLabels()['status']; ?></th>
            <td><?= $form->field($model, 'status', ['template' => '{input}{hint}{error}'])->dropDownList(['1' => '1', '2' => '2'], ['prompt' => '请选择', 'style' => 'width:180px', 'class' => 'input-dropdownlist']) ?></td>
        </tr>
    </table>
    <div class="yx-submit-box" style="display: none">
        <?= \yii\helpers\Html::submitButton('提交', ['class' => "button yx-submit"]) ?>
    </div>
</div>
<?php \yii\widgets\ActiveForm::end(); ?>

